//
//  YanzhengshoujiViewController.m
//  11-xib登录页面
//
//  Created by dllo on 16/7/28.
//  Copyright © 2016年 YMJ. All rights reserved.
//

#import "YanzhengshoujiViewController.h"

@interface YanzhengshoujiViewController ()
- (IBAction)back:(id)sender;

@end

@implementation YanzhengshoujiViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

- (IBAction)back:(id)sender {
    CATransition *animation = [CATransition animation];
    animation.timingFunction = UIViewAnimationCurveEaseInOut;
    animation.duration = 0.3;
    animation.type = kCATransitionPush;
    animation.subtype = kCATransitionFromLeft;
    [self.view.window.layer addAnimation:animation forKey:@"尼玛"];
    [self dismissViewControllerAnimated:NO completion:^{
        
        
    }];
}
@end
